package com.kk.controller;

import com.kk.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  @author kevin
 *  @date: 2019/10/30 15:40
 *
 */
@RestController
public class ProvicerController {
    @Autowired
    private ConsumerService consumerService;

    @GetMapping("provider")
    public String provider() {
        return "我是服务提供者";
    }

    @GetMapping("hello")
    public String hello() {
        return consumerService.hello();
    }
}
